﻿/* ----------------------------------------------------------------------------
 * Copyright (c) Philip Stears 
 *
 * This source code is subject to terms and conditions of the Microsoft Public 
 * License (Ms-PL).
 * 
 * By using this source code in any fashion, you are agreeing to be bound 
 * by the terms of the Microsoft Public License.
 * 
 * To request a copy of the Microsoft Public License, send a request by email
 * to license@connectbasic.net.
 *
 * This notice must not be removed from this software.
 * ---------------------------------------------------------------------------- */

namespace ConnectBasic.Shell.Hosting
{

    /// <summary>
    /// Provides support for hosting the ConnectBasic
    /// macro editor inside an application.
    /// </summary>
    public static class ShellFactory
    {

        /// <summary>
        /// Creates a new ConnectBasic shell instance with 
        /// default settings.
        /// </summary>
        /// <returns></returns>
        public static IShellHost CreateHost()
        {
            return CreateHost(null);
        }

        /// <summary>
        /// Creates a new ConnectBasic shell instance with 
        /// the specified settings.
        /// </summary>
        /// <param name="settings">The settings which describe how to setup the host.</param>
        /// <returns></returns>
        public static IShellHost CreateHost(ShellHostSettings settings)
        {
            return new DefaultShellHost(settings);
        }
    }
}
